import { art } from "../prefix";
let artList = [
  // 获取文章列表
  {
    name: "getEssay",
    url: art + "/essay",
    method: "GET",
  },
  // 根据id查询文章详情
  {
    name: "getEssayDesc",
    url: art + "/essay/:data_id",
    method: "GET",
  },
  // 根据id编辑文章
  {
    name: "updEssayDesc",
    url: art + "/essay/:data_id",
    method: "POST",
  },
  // 创建文章
  {
    name: "createEssayDesc",
    url: art + "/essay",
    method: "POST",
  },
  // 创建文章
  {
    name: "deleteEssay",
    url: art + "/essay/:data_id",
    method: "DELETE",
  },
  // 根据id查询专题文章详情
  {
    name: "getSpecialEssayDesc",
    url: art + "/special_essay/:data_id",
    method: "GET",
  },
  // 专题活动列表
  {
    name: "getActivity",
    url: art + "/special_sub",
    method: "GET",
  },
  // 查询专题活动详情
  {
    name: 'getActivityDesc',
    url: art + '/special_sub/:data_id',
    method: "GET"
  },
  // 创建专题活动
  {
    name: 'createActivity',
    url: art + '/special_sub',
    method: "POST"
  },
  // 更新专题活动
  {
    name: 'updateActivity',
    url: art + '/special_sub/:data_id',
    method: "POST"
  },
  //删除专题活动
  {
    name: 'deleteActivity',
    url: art + '/special_sub/:data_id',
    method: "DELETE"
  },
  // 查询相关文章
  {
    name: 'getAboutEssay',
    url: art + '/special_essay',
    method: "GET"
  },
  // 查询活动集锦
  {
    name: 'getActivityCollec',
    url: art + '/special_collection',
    method: "GET"
  },
  // 查询活动视频
  {
    name: 'getActivityVideo',
    url: art + '/special_video',
    method: "GET"
  },
  // 查询活动视频
  {
    name: 'getActivityWork',
    url: art + '/special_work',
    method: "GET"
  }
];

export default artList;
